package com.lldpet.spring.cloud.demo.store.client.event;

import org.springframework.cloud.bus.event.RemoteApplicationEvent;

import java.io.Serializable;

/**
 * @desc：库存更新事件
 * @author: guanliang.xue
 * @date: 2021/5/8 18:33
 * @version:
 * @since:
 */
public class StoreUpdateEvent extends RemoteApplicationEvent implements Serializable {

    /**
     * 库存编号
     */
    private String storeNo;

    /**
     * 用户Id
     */
    private String userId;

    public StoreUpdateEvent() {
    }

    public StoreUpdateEvent(String storeNo, String userId) {
        this.storeNo = storeNo;
        this.userId = userId;
    }

    public StoreUpdateEvent(Object source, String originService, String destinationService, String storeNo, String userId) {
        super(source, originService, destinationService);
        this.storeNo = storeNo;
        this.userId = userId;
    }

    public StoreUpdateEvent(Object source, String originService, String storeNo, String userId) {
        super(source, originService);
        this.storeNo = storeNo;
        this.userId = userId;
    }

    public String getStoreNo() {
        return storeNo;
    }

    public void setStoreNo(String storeNo) {
        this.storeNo = storeNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
